package com.uduew.sjd.api;

import static com.uduew.sjd.config.Const.LIVE_DETECTION;

import androidx.annotation.NonNull;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestBodyStrategy;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.RequestBodyType;

import java.util.ArrayList;


public class LiveDetectionApi implements IRequestApi, IRequestType {

    private ReqLiveDetectionBean overripe;

    public LiveDetectionApi(ReqLiveDetectionBean bean) {
        overripe = bean;
    }

    @NonNull
    @Override
    public String getApi() {
        return LIVE_DETECTION;
    }

    /**
     * 获取参数的提交类型
     */
    @NonNull
    @Override
    public IRequestBodyStrategy getBodyType() {
        return RequestBodyType.JSON;
    }


    public static final class ReqLiveDetectionBean {
        private String cichlid;
        private String cart;
//        private ArrayList<String> hawk;
        public ReqLiveDetectionBean(String cichlid, String cart, ArrayList<String> hawk) {
            this.cichlid = cichlid;
//            this.macruran = macruran;
//            this.kultur = kultur;
//            this.tearful = tearful;
            this.cart = cart;
//            this.hawk = hawk;
        }
    }

    public static final class ResLiveDetectionBean {

        private boolean laboured;
        private double batt;
        private boolean artic;
        private double pastorly;

        public boolean isLaboured() {
            return laboured;
        }

        public double getBatt() {
            return batt;
        }

        public boolean isArtic() {
            return artic;
        }

        public double getPastorly() {
            return pastorly;
        }
    }


}


